package com.robooot.business_counter.dao;

import com.robooot.business_counter.entity.Courier;
import com.robooot.business_counter.entity.SmsConfig;
import com.robooot.business_counter.model.CourierVo;
import net.sf.json.JSONObject;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CourierDao {

    void addCourier(CourierVo courierVo);

    void updateCourier(CourierVo courierVo);

    List<Courier> getCourierList(CourierVo courierVo);

    void deleteCourier(String courierId);

    SmsConfig getSmsByType();

    Integer getCourierCount(CourierVo courierVo);

    JSONObject getCourierInfo(String phone);

    void updateDevice(@Param("deviceId") String deviceId, @Param("counterNumber") String counterNumber);

    void closeDeviceDoor(@Param("counterNumber") String counterNumber, @Param("deviceId") String deviceId);

    Courier getCourier(String phone);

    JSONObject getCounterNumber(@Param("deviceId") String deviceId, @Param("counterNumber") String counterNumber);

    List<String> getDoorisOut(@Param("deviceId") String deviceId, @Param("counterNumber") String counterNumber);

    String findCounterNumber(@Param("deviceId") String deviceId, @Param("counterNumber") String counterNumber);
}
